package com.sloera.stream;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author sloera
 * @create 2020/5/10
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Employee {
    private String name;
    private int age;
    private double salary;
    private Status status;

    public Employee(int age) {
        this.age = age;
    }

    public enum Status {
        //空闲
        FREE, //忙碌
        BUSY, //休假
        VOCATION;
    }
}
